<%-- 
    Document   : pl_update
    Created on : Nov 22, 2008, 9:31:53 AM
    Author     : JollkY
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<table>
   <tr><td><html:link action="/pl_getpls.do" title="Go to main.">Price List</html:link></td></tr>
</table>
<html:form action="/pl_update.do" method="post">
    <table border="0" cellpadding="0" cellspacing="0">
        <html:hidden property="id"/>
        <tr>
            <td>Product</td>
            <td>:</td>
            <td>
                <html:select property="produk">
                <c:forEach items="${produks}" var="prod">
                    <html:option value="${prod.id}">${prod.nama}</html:option>
                </c:forEach>
                </html:select>
            </td>
        </tr>
        <tr>
            <td>Branch Office.</td>
            <td>:</td>
            <td>
                <html:select property="cabang">
                <c:forEach items="${cabangs}" var="cab">
                    <html:option value="${cab.id}">${cab.kota}</html:option>
                </c:forEach>
                </html:select>
            </td>
        </tr>
        <tr>
            <td>Price</td>
            <td>:</td>
            <td><html:text property="price"/></td>
        </tr>
        <tr>
            <td colspan="3"><html:submit value="Update Now"/></td>
        </tr>
    </table>
</html:form>
